\red255\green255\blue0;\red255\green255\blue255;}{\stylesheet{\fs20 \snext0 Normal;}}{\info{\title Auto Table Numbering}{\subject Row Numbering}{\author Kevin E. Nechodom}{\keywords Tables, merge}
{\doccomm AutoTableNumber will prompt for a column heading, a number with which to start, and an increment value. It's best use is to number a large table in order to see which records to print.}{\operator Kevin E. Nechodom}
\par \pard \sb240 Kevin Nechodom\line University of Utah CSSRD/STACC\line 420 Chipeta Suite 220\line Salt Lake City, UT 84108\line nechodom@cc.utah.edu
\par AutoNumberTable is a macro to number table rows. While I was generating form letters from a table of 359 merge records, I discovered that there was no clean way to find out what row I was on so that I could merge just that one record.
This macro will insert a column at the beginning of the row, label the top row with a designated heading (defaults to {\b AutoNumber}), then start numbering from the next row with a specified start numberand increment (defaults to {\b 1} and {\b 1}, re
spectively).
\par \pard \sb240 To start this macro, you must first click anywhere within the table you want numbered. It will bring up a dialog box querying for the header, start number and increment.
\par Not being a Word for Windows Wonder Wizard, I don't have this as an auto-install procedure. To install:
\par \pard \fi-360\li720 1)\tab Copy the whole macro onto the Clipboard.
\par 2)\tab Select {\ul M}acro {\ul E}dit.
\par 3)\tab Type in the macro name "AutoNumberTable".
\par 4)\tab Click {\b OK}.
\par 5)\tab Delete the text on the macro screen.
\par 6)\tab Paste the macro text from the Clipboard.
\par 7)\tab Close the macro edit screen and save changes.
\par \pard \fi-360\li720 8)\tab At this point, the macro may be assigned to a menu and/or a key sequence (I use {\b Shift+Ctrl+R}).
\par \pard \sb240 For completeness, I suppose I should tell you: 1) no warranties, 2) no registration, 3) no restrictions on copying, 4) modifications may be made as long as the University of Utah is mentioned in the banner.
\par \pard \sb240 (select from the line below to the bottom, and copy into the clipboard)
\par \pard Sub MAIN
\par
\par ' Setup of Dialog Box to get Column Name, Numbering Start and Step Size
\par Begin Dialog UserDialog 280, 150
\par Text 10, 6, 260, 12, "AutoNumberTable 1.0 Kevin Nechodom"
\par Text 10, 18, 260, 12, "University of Utah, CSSRD/STACC, 1991"